//
//  DXMLImporter.h
//  DerbyStatter
//
//  Created by glenn andreas on 1/6/14.
//  Copyright (c) 2014 glenn andreas. All rights reserved.
//

#import <Foundation/Foundation.h>

@class DXMLObject;

extern NSString *DXMLFileExtension; // "derbyxml" - default path extension
@interface DXMLImporter : NSObject
- (id)initWithContentsOfURL:(NSURL *)url;  // initializes the parser with the specified URL.
- (id)initWithData:(NSData *)data; // create the parser from data
- (id)initWithStream:(NSInputStream *)stream NS_AVAILABLE(10_7, 5_0); //create a parser that incrementally pulls data from the specified stream and parses it.
- (DXMLObject *) parse: (NSError **) error;
- (DXMLObject *) parseTopLevelOnly: (NSError **) error;
- (DXMLObject *) parseToDepth: (NSInteger) depth error: (NSError **) error;
@end
